<?php

class m130702_185137_add_active_users extends CDbMigration
{
	public function up()
	{
		$this->addColumn("users", "active_code","VARCHAR(128)");
		$this->addColumn("users", "active_time","TIMESTAMP");
		return true;
	}

	public function down()
	{
		$this->dropColumn('users', 'active_code');
		return true;
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}